package com.zzptc.syl.traffic;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class Login extends AppCompatActivity {
    Button btnlogin;
    Button btnreg;
    Button btlogin1;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        initview();
        event();

    }

    private void event() {
        btnlogin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent(Login.this,Network.class);
                startActivity(intent);
            }
        });
        btnreg.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(Login.this, Reg.class);
                startActivity(intent);
            }
        });
        btlogin1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(Login.this, Choice.class);
                startActivity(intent);
            }
        });


    }

    private void initview() {
        btnlogin=findViewById(R.id.Btn_login);
        btnreg=findViewById(R.id.bt_reg1);
        btlogin1=findViewById(R.id.bt_login1);
    }
}